#pragma once

#include "DXAMLCommon.h"

#include "EncodedPtr.h"


template<typename T> 
class EncodedPtrWithDelete : 
	public  EncodedPtr<T>
{
public:

	EncodedPtrWithDelete()
	{
		NOTIMPL
	}

	EncodedPtrWithDelete(T * p):EncodedPtr<T>()
	{
		this->Set(p);
	}

	~EncodedPtrWithDelete()
	{
		delete m_pUnencoded;

	}
};